package com.nashuju.web.entity.sw;

import java.util.Date;

import org.durcframework.core.expression.annotation.ValueField;
import org.durcframework.core.support.SearchEasyUI;
import org.durcframework.core.util.DateUtil;


public class SCarRecordSch extends SearchEasyUI{

	//根据时间进行搜索的部分
	private Date createdStartSch;
	private Date createdEndSch;

	@ValueField(column = "createdTime", equal = ">=")
	public Date getCreatedStartSch() {
		return createdStartSch;
	}

	public void setCreatedStartSch(Date createdStartSch) {
		this.createdStartSch = createdStartSch;
	}

	@ValueField(column = "createdTime", equal = "<")
	public Date getCreatedEndSch() {
		if (createdEndSch != null) {
			return DateUtil.getDateAfterDay(createdEndSch, 1);
		}
		return createdEndSch;
	}

	public void setCreatedEndSch(Date createdEndSch) {
		this.createdEndSch = createdEndSch;
	}


    private Integer idSch;
    private String carNumberSch;
    private String typeSch;
    private Date departTimeSch;
    private Date arriveTimeSch;
    private Integer beginKilometreSch;
    private Integer endKilometreSch;
    private Integer kilometreSch;
    private String remarkSch;
    private Date editedTimeSch;
    private Date createdTimeSch;

    public void setIdSch(Integer idSch){
        this.idSch = idSch;
    }
    
    @ValueField(column = "id")
    public Integer getIdSch(){
        return this.idSch;
    }

    public void setCarNumberSch(String carNumberSch){
        this.carNumberSch = carNumberSch;
    }
    
    @ValueField(column = "car_number")
    public String getCarNumberSch(){
        return this.carNumberSch;
    }

    public void setTypeSch(String typeSch){
        this.typeSch = typeSch;
    }
    
    @ValueField(column = "type")
    public String getTypeSch(){
        return this.typeSch;
    }

    public void setDepartTimeSch(Date departTimeSch){
        this.departTimeSch = departTimeSch;
    }
    
    @ValueField(column = "depart_time")
    public Date getDepartTimeSch(){
        return this.departTimeSch;
    }

    public void setArriveTimeSch(Date arriveTimeSch){
        this.arriveTimeSch = arriveTimeSch;
    }
    
    @ValueField(column = "arrive_time")
    public Date getArriveTimeSch(){
        return this.arriveTimeSch;
    }

    public void setBeginKilometreSch(Integer beginKilometreSch){
        this.beginKilometreSch = beginKilometreSch;
    }
    
    @ValueField(column = "begin_kilometre")
    public Integer getBeginKilometreSch(){
        return this.beginKilometreSch;
    }

    public void setEndKilometreSch(Integer endKilometreSch){
        this.endKilometreSch = endKilometreSch;
    }
    
    @ValueField(column = "end_kilometre")
    public Integer getEndKilometreSch(){
        return this.endKilometreSch;
    }

    public void setKilometreSch(Integer kilometreSch){
        this.kilometreSch = kilometreSch;
    }
    
    @ValueField(column = "kilometre")
    public Integer getKilometreSch(){
        return this.kilometreSch;
    }

    public void setRemarkSch(String remarkSch){
        this.remarkSch = remarkSch;
    }
    
    @ValueField(column = "remark")
    public String getRemarkSch(){
        return this.remarkSch;
    }

    public void setEditedTimeSch(Date editedTimeSch){
        this.editedTimeSch = editedTimeSch;
    }
    
    @ValueField(column = "edited_time")
    public Date getEditedTimeSch(){
        return this.editedTimeSch;
    }

    public void setCreatedTimeSch(Date createdTimeSch){
        this.createdTimeSch = createdTimeSch;
    }
    
    @ValueField(column = "created_time")
    public Date getCreatedTimeSch(){
        return this.createdTimeSch;
    }


}